#include "config.h"

void CConfig::load_config_info(){
	m_MainNode = m_MainNode.openFileHelper("config.sv","SV");
	XMLNode child;
	child = m_MainNode.getChildNode("version");
	m_SysVersion = child.getText();

	child = m_MainNode.getChildNode("server");
	m_DSDNS = child.getText();

	child = m_MainNode.getChildNode("port");
	const char * Port = child.getText();
	m_DSPort = atoi(Port);

	child = m_MainNode.getChildNode("thread");
	m_SysThreadAmount = child.getText();

	child = m_MainNode.getChildNode("ca");
	m_SCA = child.getText();
}

CConfig g_Config;